package io.renren.modules.generator.task;

import io.renren.common.utils.ConfigConstant;
import org.springframework.stereotype.Component;

import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * User: 齐丹枫
 * Date: 2019/1/31
 * Time: 13:21
 * To change this template use File | Settings | File Templates.
 * Description:
 */
@Component
public class ScheduleJobTask {

    public void deleteOrderPdf(){
        String path = ConfigConstant.FILE_PATH;

        File file = new File(path);
        if(file.exists()){
            File[] files = file.listFiles();
            for (File f :
                    files) {
                f.delete();
            }
        }

    }
}
